<!DOCTYPE HTML>
<html lang="zh-hans" >
    <!-- Start book Python基础 -->
<!-- Start book Python基础 -->
    <head>
        <!-- head:start -->
<!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>注释的使用 | Python基础</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="姜伟">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-prism/prism.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="chapter09.html" />
    
    
    <link rel="prev" href="chapter07.html" />
    

        <!-- head:end -->
<!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
<!-- body:start -->
        
    <div class="book"
        data-level="8"
        data-chapter-title="注释的使用"
        data-filepath="chapter08.md"
        data-basepath="."
        data-revision="Mon Feb 03 2020 11:09:50 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="index.html">
                
                        <i class="fa fa-check"></i>
                        
                        学习目标
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="chapter01.html">
            
                
                    <a href="chapter01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        计算机组成
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2" data-path="chapter02.html">
            
                
                    <a href="chapter02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        什么是编程语言
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="chapter03.html">
            
                
                    <a href="chapter03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Python语言介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="chapter04.html">
            
                
                    <a href="chapter04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        安装配置Python
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="chapter05.html">
            
                
                    <a href="chapter05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        开发工具介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="chapter06.html">
            
                
                    <a href="chapter06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        Pycharm的基本使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="chapter07.html">
            
                
                    <a href="chapter07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        交互式编程
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="8" data-path="chapter08.html">
            
                
                    <a href="./chapter08.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        注释的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9" data-path="chapter09.html">
            
                
                    <a href="chapter09.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        变量及数据类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10" data-path="chapter10.html">
            
                
                    <a href="chapter10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        标识符和关键字
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="11" data-path="chapter11.html">
            
                
                    <a href="chapter11.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.</b>
                        
                        输出语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="12" data-path="chapter12.html">
            
                
                    <a href="chapter12.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>12.</b>
                        
                        输入语句
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="" >Python基础</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x6CE8;&#x91CA;">&#x6CE8;&#x91CA;</h1>
<p>&#x5728;&#x6211;&#x4EEC;&#x5DE5;&#x4F5C;&#x7F16;&#x7801;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#x7684;&#x903B;&#x8F91;&#x6BD4;&#x8F83;&#x590D;&#x6742;&#xFF0C;&#x4E0D;&#x662F;&#x7279;&#x522B;&#x5BB9;&#x6613;&#x7406;&#x89E3;&#xFF0C;&#x53EF;&#x4EE5;&#x9002;&#x5F53;&#x7684;&#x6DFB;&#x52A0;&#x6CE8;&#x91CA;&#xFF0C;&#x4EE5;&#x8F85;&#x52A9;&#x81EA;&#x5DF1;&#x6216;&#x8005;&#x5176;&#x4ED6;&#x7F16;&#x7801;&#x4EBA;&#x5458;&#x89E3;&#x8BFB;&#x4EE3;&#x7801;&#x3002;</p>
<p><img src="imgs/&#x6CE8;&#x91CA;.jpg" alt=""></p>
<blockquote>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x6CE8;&#x91CA;&#x662F;&#x7ED9;&#x7A0B;&#x5E8F;&#x5458;&#x770B;&#x7684;&#xFF0C;&#x4E3A;&#x4E86;&#x8BA9;&#x7A0B;&#x5E8F;&#x5458;&#x65B9;&#x4FBF;&#x9605;&#x8BFB;&#x4EE3;&#x7801;&#xFF0C;&#x89E3;&#x91CA;&#x5668;&#x4F1A;&#x5FFD;&#x7565;&#x6CE8;&#x91CA;&#x3002;&#x4F7F;&#x7528;&#x81EA;&#x5DF1;&#x719F;&#x6089;&#x7684;&#x8BED;&#x8A00;&#xFF0C;&#x9002;&#x5F53;&#x7684;&#x5BF9;&#x4EE3;&#x7801;&#x8FDB;&#x884C;&#x6CE8;&#x91CA;&#x8BF4;&#x660E;&#x662F;&#x4E00;&#x79CD;&#x826F;&#x597D;&#x7684;&#x7F16;&#x7801;&#x4E60;&#x60EF;&#x3002;</p>
</blockquote>
<h2 id="&#x6CE8;&#x91CA;&#x7684;&#x5206;&#x7C7B;">&#x6CE8;&#x91CA;&#x7684;&#x5206;&#x7C7B;</h2>
<p>&#x5728;Python&#x4E2D;&#x652F;&#x6301;&#x5355;&#x884C;&#x6CE8;&#x91CA;&#x548C;&#x591A;&#x884C;&#x6CE8;&#x91CA;&#x3002;</p>
<h3 id="&#x5355;&#x884C;&#x6CE8;&#x91CA;">&#x5355;&#x884C;&#x6CE8;&#x91CA;</h3>
<p>&#x4EE5;#&#x5F00;&#x5934;&#xFF0C;#&#x53F3;&#x8FB9;&#x7684;&#x6240;&#x6709;&#x4E1C;&#x897F;&#x5F53;&#x505A;&#x8BF4;&#x660E;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x771F;&#x6B63;&#x8981;&#x6267;&#x884C;&#x7684;&#x7A0B;&#x5E8F;&#xFF0C;&#x8D77;&#x8F85;&#x52A9;&#x8BF4;&#x660E;&#x4F5C;&#x7528;&#x3002;</p>
<pre><code class="lang-python"><span class="hljs-comment"># #&#x5F00;&#x5934;&#x53F3;&#x8FB9;&#x7684;&#x90FD;&#x662F;&#x6CE8;&#x91CA;&#xFF0C;&#x89E3;&#x6790;&#x5668;&#x4F1A;&#x5FFD;&#x7565;&#x6CE8;&#x91CA;</span>
print(<span class="hljs-string">&apos;hello world&apos;</span>)  <span class="hljs-comment">#&#x6211;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x5728;&#x63A7;&#x5236;&#x53F0;&#x8F93;&#x51FA;hello world</span>
</code></pre>
<h3 id="&#x591A;&#x884C;&#x6CE8;&#x91CA;">&#x591A;&#x884C;&#x6CE8;&#x91CA;</h3>
<p>&#x4EE5;<code>&apos;&apos;&apos;</code>&#x5F00;&#x59CB;&#xFF0C;&#x5E76;&#x4EE5;<code>&apos;&apos;&apos;</code> &#x7ED3;&#x675F;&#xFF0C;&#x6211;&#x4EEC;&#x79F0;&#x4E4B;&#x4E3A;&#x591A;&#x884C;&#x6CE8;&#x91CA;&#x3002;</p>
<pre><code class="lang-python"><span class="hljs-string">&apos;&apos;&apos;
                               _ooOoo_
                              o8888888o
                              88&quot; . &quot;88
                              (| -_- |)
                              O\  =  /O
                           ____/`---&apos;\____
                         .&apos;  \\|     |//  `.
                        /  \\|||  :  |||//  \
                       /  _||||| -:- |||||-  \
                       |   | \\\  -  /// |   |
                       | \_|  &apos;&apos;\---/&apos;&apos;  |   |
                       \  .-\__  `-`  ___/-. /
                     ___`. .&apos;  /--.--\  `. . __
                  .&quot;&quot; &apos;&lt;  `.___\_&lt;|&gt;_/___.&apos;  &gt;&apos;&quot;&quot;.
                 | | :  `- \`.;`\ _ /`;.`/ - ` : | |
                 \  \ `-.   \_ __\ /__ _/   .-` /  /
            ======`-.____`-.___\_____/___.-`____.-&apos;======
                               `=---=&apos;
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       &#x4F5B;&#x7956;&#x4FDD;&#x4F51;        &#x6C38;&#x65E0;BUG
              &#x4F5B;&#x66F0;:
                     &#x5199;&#x5B57;&#x697C;&#x91CC;&#x5199;&#x5B57;&#x95F4;&#xFF0C;&#x5199;&#x5B57;&#x95F4;&#x91CC;&#x7A0B;&#x5E8F;&#x5458;&#xFF1B;
                     &#x7A0B;&#x5E8F;&#x4EBA;&#x5458;&#x5199;&#x7A0B;&#x5E8F;&#xFF0C;&#x53C8;&#x62FF;&#x7A0B;&#x5E8F;&#x6362;&#x9152;&#x94B1;&#x3002;
                     &#x9152;&#x9192;&#x53EA;&#x5728;&#x7F51;&#x4E0A;&#x5750;&#xFF0C;&#x9152;&#x9189;&#x8FD8;&#x6765;&#x7F51;&#x4E0B;&#x7720;&#xFF1B;
                     &#x9152;&#x9189;&#x9152;&#x9192;&#x65E5;&#x590D;&#x65E5;&#xFF0C;&#x7F51;&#x4E0A;&#x7F51;&#x4E0B;&#x5E74;&#x590D;&#x5E74;&#x3002;
                     &#x4F46;&#x613F;&#x8001;&#x6B7B;&#x7535;&#x8111;&#x95F4;&#xFF0C;&#x4E0D;&#x613F;&#x97A0;&#x8EAC;&#x8001;&#x677F;&#x524D;&#xFF1B;
                     &#x5954;&#x9A70;&#x5B9D;&#x9A6C;&#x8D35;&#x8005;&#x8DA3;&#xFF0C;&#x516C;&#x4EA4;&#x81EA;&#x884C;&#x7A0B;&#x5E8F;&#x5458;&#x3002;
                     &#x522B;&#x4EBA;&#x7B11;&#x6211;&#x5FD2;&#x75AF;&#x766B;&#xFF0C;&#x6211;&#x7B11;&#x81EA;&#x5DF1;&#x547D;&#x592A;&#x8D31;&#xFF1B;
                     &#x4E0D;&#x89C1;&#x6EE1;&#x8857;&#x6F02;&#x4EAE;&#x59B9;&#xFF0C;&#x54EA;&#x4E2A;&#x5F52;&#x5F97;&#x7A0B;&#x5E8F;&#x5458;&#xFF1F;
&apos;&apos;&apos;</span>
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="chapter07.html" class="navigation navigation-prev " aria-label="Previous page: 交互式编程"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="chapter09.html" class="navigation navigation-next " aria-label="Next page: 变量及数据类型"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-copy-code-button/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"prism":{},"splitter":{},"copy-code-button":{},"toggle-chapters":{},"highlight":{},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
<!-- body:end -->
    </body>
    <!-- End of book Python基础 -->
<!-- End of book Python基础 -->
</html>
